import Vue from 'vue'
import Vuex from  'vuex'

Vue.use(Vuex)


const actions={
    changeFold(context,value){
        context.commit('CHANGEFOLD',value)
    }
}
const mutations={
    CHANGEFOLD(state,value){
       state.isFold=!value
    }
}
const state={
    isFold:false,
    object:null,
    title:'',
    showOneTime:0
}

const store = new Vuex.Store({
    actions:actions,
    mutations:mutations,
    state:state
})

export default new Vuex.Store({actions,mutations,state})